package c.j.a.d.b.d;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import c.j.a.d.b.n.w;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: IDownloadAidlDepend */
public interface t extends IInterface {

    /* compiled from: IDownloadAidlDepend */
    public static abstract class a extends Binder implements t {
        public static final /* synthetic */ int a = 0;

        /* compiled from: IDownloadAidlDepend */
        public static class a implements t {
            public IBinder a;

            public a(IBinder iBinder) {
                this.a = iBinder;
            }

            public void a(c cVar, com.ss.android.socialbase.downloader.e.a aVar, int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend");
                    obtain.writeInt(1);
                    cVar.writeToParcel(obtain, 0);
                    if (aVar != null) {
                        obtain.writeInt(1);
                        aVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    obtain.writeInt(i);
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.a;
            }
        }

        public a() {
            attachInterface(this, "com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend");
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend";
            if (i == 1) {
                parcel.enforceInterface(str);
                com.ss.android.socialbase.downloader.e.a aVar = null;
                c cVar = parcel.readInt() != 0 ? (c) c.CREATOR.createFromParcel(parcel) : null;
                if (parcel.readInt() != 0) {
                    aVar = (com.ss.android.socialbase.downloader.e.a) com.ss.android.socialbase.downloader.e.a.CREATOR.createFromParcel(parcel);
                }
                ((w) this).b.a(cVar, aVar, parcel.readInt());
                parcel2.writeNoException();
                return true;
            } else if (i != 1598968902) {
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel2.writeString(str);
                return true;
            }
        }
    }

    void a(c cVar, com.ss.android.socialbase.downloader.e.a aVar, int i) throws RemoteException;
}
